package classscanner;

import java.util.Scanner;  
import java.io.*;  
  
class ScannerDemo3{     
    public static void main(String[] args) throws IOException{  
        Scanner scanner = new Scanner(new File("inputfile.txt"));  
          
        while (scanner.hasNextLine())  
            System.out.println(scanner.nextLine());
        
        System.out.println("Finish");
        scanner.close();
    }  
}  